﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="AddMoreSize.aspx.cs" Inherits="Admin_Resource_Wallpaper_AddMoreSize" Title="Untitled Page" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
<table cellpadding="10" border="0" cellspacing="10" class="table_area" style="text-align:center">
    <tr>
        <td class="heading-text" colspan="2">
            Add More Size For The Wallpaper
        </td> 
    </tr>
    <tr>
        <td colspan="2"><ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage></td>
    </tr>
    <tr>
        <td colspan="2"><asp:Image runat="server" ID="imgWallpaperThumb" AlternateText="preview" /></td>
    </tr>
    <tr>
        <td class="label-text">Wallpaper Image File</td>
        <td align="left">
            <ucc:ImageUploader runat="server" ID="uccImageUploader" TempFolder="~/Upload/Temp/" 
                UploadFolder="~/Upload/file/wallpaper/" />
            <asp:RequiredFieldValidator runat="server" ControlToValidate="uccImageUploader" ErrorMessage="Image is required" 
                Display="Dynamic" SetFocusOnError="true">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:DropDownList ID="ddlSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="Size_Changd">
                <asp:ListItem Text="Select Size" Value="None"></asp:ListItem>
                <asp:ListItem Text="1024x768" Value="1024x768"></asp:ListItem>
                <asp:ListItem Text="1152x864" Value="1152x864"></asp:ListItem>
                <asp:ListItem Text="1280x960" Value="1280x960"></asp:ListItem>
                <asp:ListItem Text="1280x1024" Value="1280x1024"></asp:ListItem>
                <asp:ListItem Text="1400x1050" Value="1400x1050"></asp:ListItem>
                <asp:ListItem Text="1600x1200" Value="1600x1200"></asp:ListItem>
                <asp:ListItem Text="480x272 (PSP)" Value="480x272"></asp:ListItem>
                <asp:ListItem Text="1280x720 (720p)" Value="1280x720"></asp:ListItem>
                <asp:ListItem Text="1280x768 (15:9)" Value="1280x768"></asp:ListItem>
                <asp:ListItem Text="1280x800 (16:10)" Value="1280x800"></asp:ListItem>
                <asp:ListItem Text="1360x768 (16:9)" Value="1360x768"></asp:ListItem>
                <asp:ListItem Text="1440x900 (16:10)" Value="1440x900"></asp:ListItem>
                <asp:ListItem Text="1680x1050 (16:10)" Value="1680x1050"></asp:ListItem>
                <asp:ListItem Text="1920x1080 (1080p mo)" Value="1920x1080"></asp:ListItem>
                <asp:ListItem Text="1920x1200 (16:10 mo)" Value="1920x1200"></asp:ListItem>
                <asp:ListItem Text="2560x1600 (16:10 mo)" Value="2560x1600"></asp:ListItem>
                <asp:ListItem Text="Other Size" Value="Other"></asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlSize" ErrorMessage="Size is required" 
                Display="Dynamic" InitialValue="None" SetFocusOnError="true">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <asp:PlaceHolder runat="server" Visible="false" ID="plhCustomSize">
    <tr>
        <td colspan="2">
            Width (px):
            <asp:TextBox ID="tbxWidth" runat="server" Width="50px" ></asp:TextBox>
            <asp:RangeValidator runat="server" ControlToValidate="tbxWidth" Display="Dynamic" SetFocusOnError="true"
                ErrorMessage="Enter number between 200 and 4000" Type="Integer" MinimumValue="200" MaximumValue="4000">
            </asp:RangeValidator>
            &nbsp;x Height (px):
            <asp:TextBox ID="tbxHeight" runat="server" Width="50px"></asp:TextBox>
            <asp:RangeValidator runat="server" ControlToValidate="tbxHeight" Display="Dynamic" SetFocusOnError="true"
                ErrorMessage="Enter number between 200 and 4000" Type="Integer" MinimumValue="200" MaximumValue="4000">
            </asp:RangeValidator>
        </td>
    </tr>
    </asp:PlaceHolder>
    <tr>
        <td>&nbsp;</td>
        <td align="right">
            <asp:Button ID="btnCreate" runat="server" OnClick="Create_Click"  
                Text="Create" CssClass="button" />
        </td>
    </tr>
</table>    
</asp:Content>

